<%--
  Created by IntelliJ IDEA.
  systemParam: lichengming
  Date: 2017/6/15
  Time: 下午12:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>服务器管理</title>
    <script type="text/javascript">

        function serverSave() {

            var result = false;
            $.emsAjax({
                url:"/starCms/serverConfig/serverEditToSave",
                data:{
                    id:"${server.id}",
                    serverName:$("#serverOfName").val(),
                    ip:$("#serverOfIp").val(),
                    port:$("#serverOfPort").val(),
                    env:$("#serverOfEnv").val()
                },
                success:function(resp) {
                    if (resp.status == "000") {
                        result = true;
                        $.alert(resp.message);
                    }else $.errorAlert("编辑失败");
                }
            });
            return result;
        }
    </script>

</head>
<body>
<form class="form-horizontal" id="systemModule">

    <div class="form-group">
        <label for="serverOfName" class="col-sm-4 control-label">服务器名称：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="serverOfName" name="serverOfName" value="${server.server_name}" placeholder="服务器名称" />
        </div>
    </div>

    <div class="form-group">
        <label for="serverOfEnv" class="col-sm-4 control-label">环境：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="serverOfEnv" value="${server.env}" placeholder="环境" />
        </div>
    </div>

    <div class="form-group">
        <label for="serverOfIp" class="col-sm-4 control-label">IP地址：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="serverOfIp" value="${server.ip}" placeholder="IP地址" />
        </div>
    </div>

    <div class="form-group">
        <label for="serverOfPort" class="col-sm-4 control-label">端口：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="serverOfPort" value="${server.port}" placeholder="端口" />
        </div>
    </div>
</form>
</body>
</html>